#ifndef __CHESS_WINDOW_H__
#define __CHESS_WINDOW_H__

#include <QLabel>
#include "ui_main_window.h"
#include "const_string.h"


// 主窗口
class ChessWindow : public QMainWindow, public Ui::MainWindow
{
    Q_OBJECT

private:
    class Chess : public QLabel
    {
    public:
        Chess(void)
        {
            setPixmap(QPixmap(QString::fromUtf8(":/images/bk.bmp")));
        }
    };

public:
    ChessWindow(void);

private slots:
    void closeEvent(QCloseEvent *pEvent);

private:
    static int const M_WIDTH;
    static int const M_HEIGHT;
    static int const M_BOARD_WIDTH;
    static int const M_BOARD_HEIGHT;

private:
    Chess m_chesses[32];
};


#endif
